package com;

import com.config.SpringConfig;
import com.service.ResourceService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        ResourceService bean = ctx.getBean(ResourceService.class);
        bean.saveUrl("itcase","   1234   ");
    }
}
